import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;


public class DresseurTest {

	private Pokemon pikachu;
	private Dresseur sacha;
	private Potion potion;
	/**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
        pikachu = new Pokemon();
        potion = new Potion(pikachu);
        sacha = new Dresseur("Sacha");
        sacha.getSacADos().add(potion);
        pikachu.setDresseur(sacha);
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }

    @Test
    public void testDresseur()
    {
        assertEquals(15,pikachu.damage(5));
        assertEquals(true,sacha.donnePotion(1));
        assertEquals(25,pikachu.getHP());
        assertTrue(sacha.getPokemons().get(0).equals(pikachu));
    }
}
